/**
 * cookie操作
 */
var getCookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        var path = options.path ? '; path=' + options.path : '';
        var domain = options.domain ? '; domain=' + options.domain : '';
        var s = [cookie, expires, path, domain, secure].join('');
        var secure = options.secure ? '; secure' : '';
        var c = [name, '=', encodeURIComponent(value)].join('');
        var cookie = [c, expires, path, domain, secure].join('')
        document.cookie = cookie;
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
}; 

/**
 * 获取浏览器语言类型
 * @return {string} 浏览器国家语言
 */
var getNavLanguage = function(){
    if(navigator.appName == "Netscape"){
        var navLanguage = navigator.language;
        return navLanguage.substr(0,2);
    }
    return false;
}



$.i18n.customMap = {
	'zh-CN': {
		'「大{%d}」,购买成功': '「高{%d}」，购买成功',
		'「小{%d}」,购买成功': '「低{%d}」，购买成功',
		'「单{%d}」,购买成功': '「多{%d}」，购买成功',
		'「双{%d}」,购买成功': '「空{%d}」，购买成功',
		'「极大{%d}」,购买成功': '「极高{%d}」，购买成功',
		'「大单{%d}」,购买成功': '「高多{%d}」，购买成功',
		'「小单{%d}」,购买成功': '「低多{%d}」，购买成功',
		'「大双{%d}」,购买成功': '「高空{%d}」，购买成功',
		'「小双{%d}」,购买成功': '「低空{%d}」，购买成功',
		'「极小{%d}」,购买成功': '「极低{%d}」，购买成功',
		'「大{%d}」非开盘时间，购买失败': '「高{%d}」非开盘时间，购买失败',
		'「小{%d}」非开盘时间，购买失败': '「低{%d}」非开盘时间，购买失败',
		'「单{%d}」非开盘时间，购买失败': '「多{%d}」非开盘时间，购买失败',
		'「双{%d}」非开盘时间，购买失败': '「空{%d}」非开盘时间，购买失败',
		'「极大{%d}」非开盘时间，购买失败': '「极高{%d}」非开盘时间，购买失败',
		'「大单{%d}」非开盘时间，购买失败': '「高多{%d}」非开盘时间，购买失败',
		'「小单{%d}」非开盘时间，购买失败': '「低多{%d}」非开盘时间，购买失败',
		'「大双{%d}」非开盘时间，购买失败': '「高空{%d}」非开盘时间，购买失败',
		'「小双{%d}」非开盘时间，购买失败': '「低空{%d}」非开盘时间，购买失败',
		'「极小{%d}」非开盘时间，购买失败': '「极低{%d}」非开盘时间，购买失败',
		'「大{%d}」单笔数量最高{%d},购买失败': '「高{%d}」单笔数量最高{%d},购买失败',
		'「小{%d}」单笔数量最高{%d},购买失败': '「低{%d}」单笔数量最高{%d},购买失败',
		'「单{%d}」单笔数量最高{%d},购买失败': '「多{%d}」单笔数量最高{%d},购买失败',
		'「双{%d}」单笔数量最高{%d},购买失败': '「空{%d}」单笔数量最高{%d},购买失败',
		'「极大{%d}」单笔数量最高{%d},购买失败': '「极高{%d}」单笔数量最高{%d},购买失败',
		'「大单{%d}」单笔数量最高{%d},购买失败': '「高多{%d}」单笔数量最高{%d},购买失败',
		'「小单{%d}」单笔数量最高{%d},购买失败': '「低多{%d}」单笔数量最高{%d},购买失败',
		'「大双{%d}」单笔数量最高{%d},购买失败': '「高空{%d}」单笔数量最高{%d},购买失败',
		'「小双{%d}」单笔数量最高{%d},购买失败': '「低空{%d}」单笔数量最高{%d},购买失败',
		'「极小{%d}」单笔数量最高{%d},购买失败': '「极低{%d}」单笔数量最高{%d},购买失败',
		'「大{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「高{%d}」当前玩法每期最高数量{%d},您已超过，购买失败',
		'「小{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「低{%d}」当前玩法每期最高数量{%d},您已超过，购买失败',
		'「单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「多{%d}」当前玩法每期最高数量{%d},您已超过，购买失败',
		'「双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「空{%d}」当前玩法每期最高数量{%d},您已超过，购买失败',
		'「极大{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「极高{%d}」当前玩法每期最高数量{%d},您已超过，购买失败',
		'「大单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「高多{%d}」当前玩法每期最高数量{%d},您已超过，购买失败',
		'「小单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「低多{%d}」当前玩法每期最高数量{%d},您已超过，购买失败',
		'「大双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「高空{%d}」当前玩法每期最高数量{%d},您已超过，购买失败',
		'「小双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「低空{%d}」当前玩法每期最高数量{%d},您已超过，购买失败',
		'「极小{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「极低{%d}」当前玩法每期最高数量{%d},您已超过，购买失败',
		'「大{%d}」点数不足，竞猜失败': '「高{%d}」点数不足，竞猜失败',
		'「小{%d}」点数不足，竞猜失败': '「低{%d}」点数不足，竞猜失败',
		'「单{%d}」点数不足，竞猜失败': '「多{%d}」点数不足，竞猜失败',
		'「双{%d}」点数不足，竞猜失败': '「空{%d}」点数不足，竞猜失败',
		'「极大{%d}」点数不足，竞猜失败': '「极高{%d}」点数不足，竞猜失败',
		'「大单{%d}」点数不足，竞猜失败': '「高多{%d}」点数不足，竞猜失败',
		'「小单{%d}」点数不足，竞猜失败': '「低多{%d}」点数不足，竞猜失败',
		'「大双{%d}」点数不足，竞猜失败': '「高空{%d}」点数不足，竞猜失败',
		'「小双{%d}」点数不足，竞猜失败': '「低空{%d}」点数不足，竞猜失败',
		'「极小{%d}」点数不足，竞猜失败': '「极低{%d}」点数不足，竞猜失败',
		'「{%d}点{%d}」点数不足，竞猜失败': '「{%d}点{%d}」点数不足，竞猜失败',
		'大{%d}': '高{%d}',
		'小{%d}': '低{%d}',
		'单{%d}': '多{%d}',
		'双{%d}': '空{%d}',
		'极大{%d}': '极高{%d}',
		'大单{%d}': '高多{%d}',
		'小单{%d}': '低多{%d}',
		'大双{%d}': '高空{%d}',
		'小双{%d}': '低空{%d}',
		'极小{%d}': '极低{%d}',
		'大': '高',
		'小': '低',
		'单': '多',
		'双': '空',
		'极大': '极高',
		'大单': '高多',
		'小单': '低多',
		'大双': '高空',
		'小双': '低空',
		'极小': '极低',
		'当前玩法每期最高数量': '当前玩法每期最高数量',
		'您已超过，购买失败': '您已超过，购买失败',
		'货币不足': '货币不足',
		'轮数:{%d}-已开盘，祝各位理投成功': '轮数：{%d}-已开盘，祝各位理投成功',
		'数量不能为空': '数量不能为空',
		'单笔数量最高': '单笔数量最高',
		'购买失败': '购买失败',
		'旧的提现密码输入错误!':'旧的取出密钥错误!',
		'提现密码设置成功,':'取出密钥设置成功',
		'提款密码错误':'取出密钥错误',
		'转让成功等待审核':'等待审核',
		'COINJARVIP,为您带来一种新的数字货币体验!':'COINJARVIP,为您带来一种新的新的数字货币体验!',
		
	},
	'zh-TW': {
		'期号:{%d}已封盘，请耐心等待结果': '期號{%d}已封盤，請耐心等待結果',
		'期号:{%d}<br/>--距离封盘还有{%d}秒--': '期號:{%d}<br/>--距離封盤還有{%d}秒--',
		'{%s}{%d}」,购买成功': '「{%s}{%d}」，購買成功',
		'期号:{%d}开放，祝各位购买成功': '期號：{%d}開放，祝各位購買成功',
		'「{%s}{%d}」非开盘时间，购买失败': '「{%s}{%d}」非開盤時間,購買失敗',
		'「大{%d}」,购买成功': '「高{%d}」，購買成功',
		'「小{%d}」,购买成功': '「低{%d}」，購買成功',
		'「单{%d}」,购买成功': '「多{%d}」，購買成功',
		'「双{%d}」,购买成功': '「空{%d}」，購買成功',
		'「极大{%d}」,购买成功': '「極高{%d}」，購買成功',
		'「大单{%d}」,购买成功': '「高多{%d}」，購買成功',
		'「小单{%d}」,购买成功': '「低多{%d}」，購買成功',
		'「大双{%d}」,购买成功': '「高空{%d}」，購買成功',
		'「小双{%d}」,购买成功': '「低空{%d}」，購買成功',
		'「极小{%d}」,购买成功': '「極低{%d}」，購買成功',
		'「{%d}点{%d}」,购买成功': '「{%d}點{%d}」,購買成功',
		'「{%d}点{%d}」非开盘时间，购买失败': '「{%d}點{%d}」非開盤時間，購買失敗',
		'「大{%d}」非开盘时间，购买失败': '「高{%d}」非開盤時間，購買失敗',
		'「小{%d}」非开盘时间，购买失败': '「低{%d}」非開盤時間，購買失敗',
		'「单{%d}」非开盘时间，购买失败': '「多{%d}」非開盤時間，購買失敗',
		'「双{%d}」非开盘时间，购买失败': '「空{%d}」非開盤時間，購買失敗',
		'「极大{%d}」非开盘时间，购买失败': '「極高{%d}」非開盤時間，購買失敗',
		'「大单{%d}」非开盘时间，购买失败': '「高多{%d}」非開盤時間，購買失敗',
		'「小单{%d}」非开盘时间，购买失败': '「低多{%d}」非開盤時間，購買失敗',
		'「大双{%d}」非开盘时间，购买失败': '「高空{%d}」非開盤時間，購買失敗',
		'「小双{%d}」非开盘时间，购买失败': '「低空{%d}」非開盤時間，購買失敗',
		'「极小{%d}」非开盘时间，购买失败': '「極低{%d}」非開盤時間，購買失敗',
		'「大{%d}」单笔数量最高{%d},购买失败': '「高{%d}」單筆數量最高{%d}，購買失敗',
		'「小{%d}」单笔数量最高{%d},购买失败': '「低{%d}」單筆數量最高{%d}，購買失敗',
		'「单{%d}」单笔数量最高{%d},购买失败': '「多{%d}」單筆數量最高{%d}，購買失敗',
		'「双{%d}」单笔数量最高{%d},购买失败': '「空{%d}」單筆數量最高{%d}，購買失敗',
		'「极大{%d}」单笔数量最高{%d},购买失败': '「極高{%d}」單筆數量最高{%d}，購買失敗',
		'「大单{%d}」单笔数量最高{%d},购买失败': '「高多{%d}」單筆數量最高{%d}，購買失敗',
		'「小单{%d}」单笔数量最高{%d},购买失败': '「低多{%d}」單筆數量最高{%d}，購買失敗',
		'「大双{%d}」单笔数量最高{%d},购买失败': '「高空{%d}」單筆數量最高{%d}，購買失敗',
		'「小双{%d}」单笔数量最高{%d},购买失败': '「低空{%d}」單筆數量最高{%d}，購買失敗',
		'「极小{%d}」单笔数量最高{%d},购买失败': '「極低{%d}」單筆數量最高{%d}，購買失敗',
		'「{%d}点{%d}」单笔数量最高{%d},购买失败': '「{%d}點{%d}」單筆數量最高{%d}，購買失敗',
		'「大{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「高{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「小{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「低{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「多{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「空{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「极大{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「極高{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「大单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「高多{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「小单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「低多{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「大双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「高空{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「小双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「低空{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「极小{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「極低{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「{%d}点{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「{%d}點{%d}」當前玩法每期最高數量{%d}，您已超過，購買失敗',
		'「大{%d}」点数不足，竞猜失败': '「高{%d}」點數不足，競猜失敗',
		'「小{%d}」点数不足，竞猜失败': '「低{%d}」點數不足，競猜失敗',
		'「单{%d}」点数不足，竞猜失败': '「多{%d}」點數不足，競猜失敗',
		'「双{%d}」点数不足，竞猜失败': '「空{%d}」點數不足，競猜失敗',
		'「极大{%d}」点数不足，竞猜失败': '「極高{%d}」點數不足，競猜失敗',
		'「大单{%d}」点数不足，竞猜失败': '「高多{%d}」點數不足，競猜失敗',
		'「小单{%d}」点数不足，竞猜失败': '「低多{%d}」點數不足，競猜失敗',
		'「大双{%d}」点数不足，竞猜失败': '「高空{%d}」點數不足，競猜失敗',
		'「小双{%d}」点数不足，竞猜失败': '「低空{%d}」點數不足，競猜失敗',
		'「极小{%d}」点数不足，竞猜失败': '「極低{%d}」點數不足，競猜失敗',
		'「{%d}点{%d}」点数不足，竞猜失败': '「{%d}點{%d}」點數不足，競猜失敗',
		'大{%d}': '高{%d}',
		'小{%d}': '低{%d}',
		'单{%d}': '多{%d}',
		'双{%d}': '空{%d}',
		'极大{%d}': '極高{%d}',
		'大单{%d}': '高多{%d}',
		'小单{%d}': '低多{%d}',
		'大双{%d}': '高空{%d}',
		'小双{%d}': '低空{%d}',
		'极小{%d}': '極低{%d}',
		'大': '高',
		'小': '低',
		'单': '多',
		'双': '空',
		'极大': '極高',
		'大单': '高多',
		'小单': '低多',
		'大双': '高空',
		'小双': '低空',
		'极小': '極低',
		'{%d}点{%d}': '{%d}點{%d}',
		'当前玩法每期最高数量': '當前玩法每期最高數量',
		'您已超过，购买失败': '您已超過，購買失敗',
		'货币不足': '貨幣不足',
		'轮数:{%d}-已开盘，祝各位理投成功': '輪數：{%d}-已開盤,祝各位理投成功',
		'数量不能为空': '數量不能為空',
		'单笔数量最高': '單筆數量最高',
		'购买失败': '購買失敗',
		'余额不足': '餘額不足',
		'数量不能为空': '數量不能為空',
		'登录成功,跳转中~': '登入成功，跳轉中~',
		'注册成功,跳转中~': '注册成功，跳轉中~',
		'旧的提现密码输入错误!':'舊的取出金鑰錯誤!',
		'修改密码成功，跳转中~':'修改密碼成功，跳轉中~',
		'提现密码设置成功,':'取出金鑰設定成功',
		'币种不能为空':'幣種不能為空',
		'币种长度必须在16到19之间':'幣種長度必須在16到19之間',
		'提款密码错误':'取出金鑰錯誤',
		'转出成功!':'轉出成功!',
		'转出失败!':'轉出失敗!',
		'转出失败！请稍候再试':'轉出失敗！請稍候再試',
		'确定转出吗？':'確定轉出嗎？',
		'请填写完整':'請填寫完整',
		'转让成功等待审核':'等待稽核',
		'进入房间最低点数{%d}':'進入房間最低點數{%d}',
		'金额超过总金额{%d}':'金額超過總金額{%d}',
		'金额区间需为{%d}~{%d}':'金額區間需為{%d}~{%d}',
		'COINJARVIP,为您带来一种新的数字货币体验!':'COINJARVIP,為您帶來一種新的數字貨幣體驗!'
	},
	'en': {
		'期号:{%d}已封盘，请耐心等待结果': 'Round{%d}Sealed，please be patient and wait for the result',
		'期号:{%d}<br/>--距离封盘还有{%d}秒--': 'Round:{%d}<br/>--{%d} seconds to close--',
		'{%s}{%d}」,购买成功': '「{%s}{%d}」，Purchase successful',
		'期号:{%d}开放，祝各位购买成功': 'Issue number: {%d} open, I wish you success',
		'「{%s}{%d}」非开盘时间，购买失败': '「{%s}{%d}」Non-open time, purchase failed',
		'「大{%d}」,购买成功': '「High{%d}」，The purchase was successful',
		'「小{%d}」,购买成功': '「low{%d}」，The purchase was successful',
		'「单{%d}」,购买成功': '「many{%d}」，The purchase was successful',
		'「双{%d}」,购买成功': '「empty{%d}」，The purchase was successful',
		'「极大{%d}」,购买成功': '「Very high{%d}」，The purchase was successful',
		'「大单{%d}」,购买成功': '「Gordo{%d}」，The purchase was successful',
		'「小单{%d}」,购买成功': '「Much lower{%d}」，The purchase was successful',
		'「大双{%d}」,购买成功': '「high altitude{%d}」，The purchase was successful',
		'「小双{%d}」,购买成功': '「low altitude{%d}」，The purchase was successful',
		'「极小{%d}」,购买成功': '「Very low{%d}」，The purchase was successful',
		'「{%d}点{%d}」,购买成功': '「{%d}點{%d}」,The purchase was successful',
		'「{%d}点{%d}」非开盘时间，购买失败': '「{%d}Point{%d}」There is not enough money and the purchase failed',
		'「大{%d}」非开盘时间，购买失败': '「High{%d}」, There is not enough money and the purchase failed',
		'「小{%d}」非开盘时间，购买失败': '「low{%d}」, There is not enough money and the purchase failed',
		'「单{%d}」非开盘时间，购买失败': '「many{%d}」, There is not enough money and the purchase failed',
		'「双{%d}」非开盘时间，购买失败': '「empty{%d}」, There is not enough money and the purchase failed',
		'「极大{%d}」非开盘时间，购买失败': '「Very high{%d}」, There is not enough money and the purchase failed',
		'「大单{%d}」非开盘时间，购买失败': '「Gordo{%d}」, There is not enough money and the purchase failed',
		'「小单{%d}」非开盘时间，购买失败': '「Much lower{%d}」, There is not enough money and the purchase failed',
		'「大双{%d}」非开盘时间，购买失败': '「high altitude{%d}」, There is not enough money and the purchase failed',
		'「小双{%d}」非开盘时间，购买失败': '「low altitude{%d}」, There is not enough money and the purchase failed',
		'「极小{%d}」非开盘时间，购买失败': '「Very low{%d}」, There is not enough money and the purchase failed',
		'「大{%d}」单笔数量最高{%d},购买失败': '「High{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「小{%d}」单笔数量最高{%d},购买失败': '「low{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「单{%d}」单笔数量最高{%d},购买失败': '「many{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「双{%d}」单笔数量最高{%d},购买失败': '「empty{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「极大{%d}」单笔数量最高{%d},购买失败': '「Very high{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「大单{%d}」单笔数量最高{%d},购买失败': '「Gordo{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「小单{%d}」单笔数量最高{%d},购买失败': '「Much lower{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「大双{%d}」单笔数量最高{%d},购买失败': '「high altitude{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「小双{%d}」单笔数量最高{%d},购买失败': '「low altitude{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「极小{%d}」单笔数量最高{%d},购买失败': '「Very low{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「{%d}点{%d}」单笔数量最高{%d},购买失败': '「{%d}Point{%d}}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「大{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「High{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「小{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「low{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「many{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「empty{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「极大{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Very high{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「大单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Gordo{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「小单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Much lower{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「大双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「high altitude{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「小双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「low altitude{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「极小{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Very low{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「{%d}点{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「{%d}spot{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「大{%d}」点数不足，竞猜失败': '「High{%d}」Insufficient points, failed in the contest',
		'「小{%d}」点数不足，竞猜失败': '「low{%d}」Insufficient points, failed in the contest',
		'「单{%d}」点数不足，竞猜失败': '「many{%d}」Insufficient points, failed in the contest',
		'「双{%d}」点数不足，竞猜失败': '「empty{%d}」Insufficient points, failed in the contest',
		'「极大{%d}」点数不足，竞猜失败': '「Very high{%d}」Insufficient points, failed in the contest',
		'「大单{%d}」点数不足，竞猜失败': '「Gordo{%d}」Insufficient points, failed in the contest',
		'「小单{%d}」点数不足，竞猜失败': '「Much lower{%d}」Insufficient points, failed in the contest',
		'「大双{%d}」点数不足，竞猜失败': '「high altitude{%d}」Insufficient points, failed in the contest',
		'「小双{%d}」点数不足，竞猜失败': '「low altitude{%d}」Insufficient points, failed in the contest',
		'「极小{%d}」点数不足，竞猜失败': '「Very low{%d}」Insufficient points, failed in the contest',
		'「{%d}点{%d}」点数不足，竞猜失败': '「{%d}Point{%d}」Insufficient points, failed in the contest',
		'大{%d}': 'High{%d}',
		'小{%d}': 'low{%d}',
		'单{%d}': 'many{%d}',
		'双{%d}': 'empty{%d}',
		'极大{%d}': 'Very high{%d}',
		'大单{%d}': 'Gordo{%d}',
		'小单{%d}': 'Much lower{%d}',
		'大双{%d}': 'high altitude{%d}',
		'小双{%d}': 'low altitude{%d}',
		'极小{%d}': 'Very low{%d}',
		'{%d}点{%d}': '{%d}Point{%d}',
		'大': 'High',
		'小': 'low',
		'单': 'many',
		'双': 'empty',
		'极大': 'Very high',
		'大单': 'Gordo',
		'小单': 'Much lower',
		'大双': 'high altitude',
		'小双': 'low altitude',
		'极小': 'Very low',
		'当前玩法每期最高数量': 'The maximum number of current games per issue',
		'您已超过，购买失败': 'You have exceeded and the purchase failed',
		'货币不足': 'There is not enough money',
		'轮数:{%d}-已开盘，祝各位理投成功': 'Round:{%d}-Opened,I wish you all success',
		'数量不能为空': 'The quantity cannot be empty',
		'单笔数量最高': 'The number of pens is highest ',
		'购买失败': 'The purchase failed',
		'余额不足': 'Sorry, your credit is running low',
		'数量不能为空': 'Quantity cannot be empty',
		'登录成功,跳转中~': 'Login successful, jumping~',
		'注册成功,跳转中~': 'Registered successfully, jumping~',
		'旧的提现密码输入错误!':'Old key removal error!',
		'修改密码成功，跳转中~':'Password changed successfully, skipping~',
		'提现密码设置成功,':'The key setting was removed successfully',
		'币种不能为空':'Currency cannot be empty',
		'币种长度必须在16到19之间':'Currency length must be between 16 and 19',
		'提款密码错误':'Error removing key',
		'转出成功!':'Transfer out successful!',
		'转出失败!':'Transfer out failed!',
		'转出失败！请稍候再试':'Transfer out failed! Please try again later',
		'确定转出吗？':'Are you sure you want to transfer out?',
		'请填写完整':'Please complete the form',
		'转让成功等待审核':'Waiting for review',
		'进入房间最低点数{%d}':'The minimum points for entering the room are {%d}',
		'金额超过总金额{%d}':'Amount exceeds total amount{%d}',
		'金额区间需为{%d}~{%d}':'The amount range should be{%d}~{%d}',
		'COINJARVIP,为您带来一种新的数字货币体验!':'COINJARVIP,bring you a new digital currency experience!',
	},
	'ma-ma': {
		'期号:{%d}已封盘，请耐心等待结果': 'Round{%d}Sealed，please be patient and wait for the result',
		'期号:{%d}<br/>--距离封盘还有{%d}秒--': 'Round:{%d}<br/>--{%d} seconds to close--',
		'{%s}{%d}」,购买成功': '「{%s}{%d}」，Purchase successful',
		'期号:{%d}开放，祝各位购买成功': 'Issue number: {%d} open, I wish you success',
		'「{%s}{%d}」非开盘时间，购买失败': '「{%s}{%d}」Non-open time, purchase failed',
		'「大{%d}」,购买成功': '「High{%d}」，The purchase was successful',
		'「小{%d}」,购买成功': '「low{%d}」，The purchase was successful',
		'「单{%d}」,购买成功': '「many{%d}」，The purchase was successful',
		'「双{%d}」,购买成功': '「empty{%d}」，The purchase was successful',
		'「极大{%d}」,购买成功': '「Very high{%d}」，The purchase was successful',
		'「大单{%d}」,购买成功': '「Gordo{%d}」，The purchase was successful',
		'「小单{%d}」,购买成功': '「Much lower{%d}」，The purchase was successful',
		'「大双{%d}」,购买成功': '「high altitude{%d}」，The purchase was successful',
		'「小双{%d}」,购买成功': '「low altitude{%d}」，The purchase was successful',
		'「极小{%d}」,购买成功': '「Very low{%d}」，The purchase was successful',
		'「{%d}点{%d}」,购买成功': '「{%d}點{%d}」,The purchase was successful',
		'「{%d}点{%d}」非开盘时间，购买失败': '「{%d}Point{%d}」There is not enough money and the purchase failed',
		'「大{%d}」非开盘时间，购买失败': '「High{%d}」, There is not enough money and the purchase failed',
		'「小{%d}」非开盘时间，购买失败': '「low{%d}」, There is not enough money and the purchase failed',
		'「单{%d}」非开盘时间，购买失败': '「many{%d}」, There is not enough money and the purchase failed',
		'「双{%d}」非开盘时间，购买失败': '「empty{%d}」, There is not enough money and the purchase failed',
		'「极大{%d}」非开盘时间，购买失败': '「Very high{%d}」, There is not enough money and the purchase failed',
		'「大单{%d}」非开盘时间，购买失败': '「Gordo{%d}」, There is not enough money and the purchase failed',
		'「小单{%d}」非开盘时间，购买失败': '「Much lower{%d}」, There is not enough money and the purchase failed',
		'「大双{%d}」非开盘时间，购买失败': '「high altitude{%d}」, There is not enough money and the purchase failed',
		'「小双{%d}」非开盘时间，购买失败': '「low altitude{%d}」, There is not enough money and the purchase failed',
		'「极小{%d}」非开盘时间，购买失败': '「Very low{%d}」, There is not enough money and the purchase failed',
		'「大{%d}」单笔数量最高{%d},购买失败': '「High{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「小{%d}」单笔数量最高{%d},购买失败': '「low{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「单{%d}」单笔数量最高{%d},购买失败': '「many{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「双{%d}」单笔数量最高{%d},购买失败': '「empty{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「极大{%d}」单笔数量最高{%d},购买失败': '「Very high{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「大单{%d}」单笔数量最高{%d},购买失败': '「Gordo{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「小单{%d}」单笔数量最高{%d},购买失败': '「Much lower{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「大双{%d}」单笔数量最高{%d},购买失败': '「high altitude{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「小双{%d}」单笔数量最高{%d},购买失败': '「low altitude{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「极小{%d}」单笔数量最高{%d},购买失败': '「Very low{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「{%d}点{%d}」单笔数量最高{%d},购买失败': '「{%d}Point{%d}}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「大{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「High{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「小{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「low{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「many{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「empty{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「极大{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Very high{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「大单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Gordo{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「小单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Much lower{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「大双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「high altitude{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「小双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「low altitude{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「极小{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Very low{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「{%d}点{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「{%d}spot{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「大{%d}」点数不足，竞猜失败': '「High{%d}」Insufficient points, failed in the contest',
		'「小{%d}」点数不足，竞猜失败': '「low{%d}」Insufficient points, failed in the contest',
		'「单{%d}」点数不足，竞猜失败': '「many{%d}」Insufficient points, failed in the contest',
		'「双{%d}」点数不足，竞猜失败': '「empty{%d}」Insufficient points, failed in the contest',
		'「极大{%d}」点数不足，竞猜失败': '「Very high{%d}」Insufficient points, failed in the contest',
		'「大单{%d}」点数不足，竞猜失败': '「Gordo{%d}」Insufficient points, failed in the contest',
		'「小单{%d}」点数不足，竞猜失败': '「Much lower{%d}」Insufficient points, failed in the contest',
		'「大双{%d}」点数不足，竞猜失败': '「high altitude{%d}」Insufficient points, failed in the contest',
		'「小双{%d}」点数不足，竞猜失败': '「low altitude{%d}」Insufficient points, failed in the contest',
		'「极小{%d}」点数不足，竞猜失败': '「Very low{%d}」Insufficient points, failed in the contest',
		'「{%d}点{%d}」点数不足，竞猜失败': '「{%d}Point{%d}」Insufficient points, failed in the contest',
		'大{%d}': 'High{%d}',
		'小{%d}': 'low{%d}',
		'单{%d}': 'many{%d}',
		'双{%d}': 'empty{%d}',
		'极大{%d}': 'Very high{%d}',
		'大单{%d}': 'Gordo{%d}',
		'小单{%d}': 'Much lower{%d}',
		'大双{%d}': 'high altitude{%d}',
		'小双{%d}': 'low altitude{%d}',
		'极小{%d}': 'Very low{%d}',
		'{%d}点{%d}': '{%d}Point{%d}',
		'大': 'High',
		'小': 'low',
		'单': 'many',
		'双': 'empty',
		'极大': 'Very high',
		'大单': 'Gordo',
		'小单': 'Much lower',
		'大双': 'high altitude',
		'小双': 'low altitude',
		'极小': 'Very low',
		'当前玩法每期最高数量': 'The maximum number of current games per issue',
		'您已超过，购买失败': 'You have exceeded and the purchase failed',
		'货币不足': 'There is not enough money',
		'轮数:{%d}-已开盘，祝各位理投成功': 'Round:{%d}-Opened,I wish you all success',
		'数量不能为空': 'The quantity cannot be empty',
		'单笔数量最高': 'The number of pens is highest ',
		'购买失败': 'The purchase failed',
		'余额不足': 'Sorry, your credit is running low',
		'数量不能为空': 'Quantity cannot be empty',
		'登录成功,跳转中~': 'Login successful, jumping~',
		'注册成功,跳转中~': 'Registered successfully, jumping~',
		'旧的提现密码输入错误!':'Old key removal error!',
		'修改密码成功，跳转中~':'Password changed successfully, skipping~',
		'提现密码设置成功,':'The key setting was removed successfully',
		'币种不能为空':'Currency cannot be empty',
		'币种长度必须在16到19之间':'Currency length must be between 16 and 19',
		'提款密码错误':'Error removing key',
		'转出成功!':'Transfer out successful!',
		'转出失败!':'Transfer out failed!',
		'转出失败！请稍候再试':'Transfer out failed! Please try again later',
		'确定转出吗？':'Are you sure you want to transfer out?',
		'请填写完整':'Please complete the form',
		'转让成功等待审核':'Waiting for review',
		'进入房间最低点数{%d}':'The minimum points for entering the room are {%d}',
		'金额超过总金额{%d}':'Amount exceeds total amount{%d}',
		'金额区间需为{%d}~{%d}':'The amount range should be{%d}~{%d}',
		'COINJARVIP,为您带来一种新的数字货币体验!':'COINJARVIP,membawakan anda pengalaman mata wang digital baharu yang berbeza!',
	},
	'vi-vn': {
	    '期号:{%d}已封盘，请耐心等待结果': 'Round{%d}Sealed，please be patient and wait for the result',
		'期号:{%d}<br/>--距离封盘还有{%d}秒--': 'Round:{%d}<br/>--{%d} seconds to close--',
		'{%s}{%d}」,购买成功': '「{%s}{%d}」，Purchase successful',
		'期号:{%d}开放，祝各位购买成功': 'Issue number: {%d} open, I wish you success',
		'「{%s}{%d}」非开盘时间，购买失败': '「{%s}{%d}」Non-open time, purchase failed',
		'「大{%d}」,购买成功': '「High{%d}」，The purchase was successful',
		'「小{%d}」,购买成功': '「low{%d}」，The purchase was successful',
		'「单{%d}」,购买成功': '「many{%d}」，The purchase was successful',
		'「双{%d}」,购买成功': '「empty{%d}」，The purchase was successful',
		'「极大{%d}」,购买成功': '「Very high{%d}」，The purchase was successful',
		'「大单{%d}」,购买成功': '「Gordo{%d}」，The purchase was successful',
		'「小单{%d}」,购买成功': '「Much lower{%d}」，The purchase was successful',
		'「大双{%d}」,购买成功': '「high altitude{%d}」，The purchase was successful',
		'「小双{%d}」,购买成功': '「low altitude{%d}」，The purchase was successful',
		'「极小{%d}」,购买成功': '「Very low{%d}」，The purchase was successful',
		'「{%d}点{%d}」,购买成功': '「{%d}點{%d}」,The purchase was successful',
		'「{%d}点{%d}」非开盘时间，购买失败': '「{%d}Point{%d}」There is not enough money and the purchase failed',
		'「大{%d}」非开盘时间，购买失败': '「High{%d}」, There is not enough money and the purchase failed',
		'「小{%d}」非开盘时间，购买失败': '「low{%d}」, There is not enough money and the purchase failed',
		'「单{%d}」非开盘时间，购买失败': '「many{%d}」, There is not enough money and the purchase failed',
		'「双{%d}」非开盘时间，购买失败': '「empty{%d}」, There is not enough money and the purchase failed',
		'「极大{%d}」非开盘时间，购买失败': '「Very high{%d}」, There is not enough money and the purchase failed',
		'「大单{%d}」非开盘时间，购买失败': '「Gordo{%d}」, There is not enough money and the purchase failed',
		'「小单{%d}」非开盘时间，购买失败': '「Much lower{%d}」, There is not enough money and the purchase failed',
		'「大双{%d}」非开盘时间，购买失败': '「high altitude{%d}」, There is not enough money and the purchase failed',
		'「小双{%d}」非开盘时间，购买失败': '「low altitude{%d}」, There is not enough money and the purchase failed',
		'「极小{%d}」非开盘时间，购买失败': '「Very low{%d}」, There is not enough money and the purchase failed',
		'「大{%d}」单笔数量最高{%d},购买失败': '「High{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「小{%d}」单笔数量最高{%d},购买失败': '「low{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「单{%d}」单笔数量最高{%d},购买失败': '「many{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「双{%d}」单笔数量最高{%d},购买失败': '「empty{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「极大{%d}」单笔数量最高{%d},购买失败': '「Very high{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「大单{%d}」单笔数量最高{%d},购买失败': '「Gordo{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「小单{%d}」单笔数量最高{%d},购买失败': '「Much lower{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「大双{%d}」单笔数量最高{%d},购买失败': '「high altitude{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「小双{%d}」单笔数量最高{%d},购买失败': '「low altitude{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「极小{%d}」单笔数量最高{%d},购买失败': '「Very low{%d}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「{%d}点{%d}」单笔数量最高{%d},购买失败': '「{%d}Point{%d}}」The maximum quantity of a single transaction is {%d}, and the purchase failed',
		'「大{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「High{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「小{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「low{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「many{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「empty{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「极大{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Very high{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「大单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Gordo{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「小单{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Much lower{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「大双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「high altitude{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「小双{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「low altitude{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「极小{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「Very low{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「{%d}点{%d}」当前玩法每期最高数量{%d},您已超过，购买失败': '「{%d}spot{%d}」At present, the maximum number of each issue is {%d}. You have exceeded it. Purchase failed',
		'「大{%d}」点数不足，竞猜失败': '「High{%d}」Insufficient points, failed in the contest',
		'「小{%d}」点数不足，竞猜失败': '「low{%d}」Insufficient points, failed in the contest',
		'「单{%d}」点数不足，竞猜失败': '「many{%d}」Insufficient points, failed in the contest',
		'「双{%d}」点数不足，竞猜失败': '「empty{%d}」Insufficient points, failed in the contest',
		'「极大{%d}」点数不足，竞猜失败': '「Very high{%d}」Insufficient points, failed in the contest',
		'「大单{%d}」点数不足，竞猜失败': '「Gordo{%d}」Insufficient points, failed in the contest',
		'「小单{%d}」点数不足，竞猜失败': '「Much lower{%d}」Insufficient points, failed in the contest',
		'「大双{%d}」点数不足，竞猜失败': '「high altitude{%d}」Insufficient points, failed in the contest',
		'「小双{%d}」点数不足，竞猜失败': '「low altitude{%d}」Insufficient points, failed in the contest',
		'「极小{%d}」点数不足，竞猜失败': '「Very low{%d}」Insufficient points, failed in the contest',
		'「{%d}点{%d}」点数不足，竞猜失败': '「{%d}Point{%d}」Insufficient points, failed in the contest',
		'大{%d}': 'High{%d}',
		'小{%d}': 'low{%d}',
		'单{%d}': 'many{%d}',
		'双{%d}': 'empty{%d}',
		'极大{%d}': 'Very high{%d}',
		'大单{%d}': 'Gordo{%d}',
		'小单{%d}': 'Much lower{%d}',
		'大双{%d}': 'high altitude{%d}',
		'小双{%d}': 'low altitude{%d}',
		'极小{%d}': 'Very low{%d}',
		'{%d}点{%d}': '{%d}Point{%d}',
		'大': 'High',
		'小': 'low',
		'单': 'many',
		'双': 'empty',
		'极大': 'Very high',
		'大单': 'Gordo',
		'小单': 'Much lower',
		'大双': 'high altitude',
		'小双': 'low altitude',
		'极小': 'Very low',
		'当前玩法每期最高数量': 'The maximum number of current games per issue',
		'您已超过，购买失败': 'You have exceeded and the purchase failed',
		'货币不足': 'There is not enough money',
		'轮数:{%d}-已开盘，祝各位理投成功': 'Round:{%d}-Opened,I wish you all success',
		'数量不能为空': 'The quantity cannot be empty',
		'单笔数量最高': 'The number of pens is highest ',
		'购买失败': 'The purchase failed',
		'余额不足': 'Sorry, your credit is running low',
		'数量不能为空': 'Quantity cannot be empty',
		'登录成功,跳转中~': 'Login successful, jumping~',
		'注册成功,跳转中~': 'Registered successfully, jumping~',
		'旧的提现密码输入错误!':'Old key removal error!',
		'修改密码成功，跳转中~':'Password changed successfully, skipping~',
		'提现密码设置成功,':'The key setting was removed successfully',
		'币种不能为空':'Currency cannot be empty',
		'币种长度必须在16到19之间':'Currency length must be between 16 and 19',
		'提款密码错误':'Error removing key',
		'转出成功!':'Transfer out successful!',
		'转出失败!':'Transfer out failed!',
		'转出失败！请稍候再试':'Transfer out failed! Please try again later',
		'确定转出吗？':'Are you sure you want to transfer out?',
		'请填写完整':'Please complete the form',
		'转让成功等待审核':'Waiting for review',
		'进入房间最低点数{%d}':'The minimum points for entering the room are {%d}',
		'金额超过总金额{%d}':'Amount exceeds total amount{%d}',
		'金额区间需为{%d}~{%d}':'The amount range should be{%d}~{%d}',
		'COINJARVIP,为您带来一种新的数字货币体验!':'COINJARVIP,mang đến cho bạn một trải nghiệm mới về đồng tiền kỹ thuật số mới!',
	}
};



$.i18n.trans = function(msg, def){
	  // return prop in $.i18n.map ? $.i18n.prop(prop) : (def || prop);
	  var maps = $.i18n.customMap[window.i18nLanguage || "zh-CN"];
      var arr = [];
      // /\d+\.?\d*?/g
      var norm = msg.replace(/\d+(\.\d+)?/g, function(t) {
        arr.push(t); return "{%d}";
      });
      
	  var orig = maps[norm] || $.i18n.map[norm] || "";
	  var str = (typeof orig == "string") ? orig : orig[0];
      if(!str){
      	return def || msg;
      }
      if(!arr.length){
      	return str;
      }
      return str.replace(/\{%d\}/g, function() {
        return arr.shift();
      });
}

/**
 * 设置语言类型： 默认为中文
 */
var i18nLanguage = "en";

/*
设置一下网站支持的语言种类
 */
var webLanguage = ['zh-CN', 'zh-TW', 'en', 'ma-ma', 'vi-vn'];

/**
 * 执行页面i18n方法
 * @return
 */ 
var execI18n = function(){
    /*
    获取一下资源文件名
     */
    var optionEle = $("#i18n_pagename");
    if (optionEle.length < 1) {
        console.log("未找到页面名称元素，请在页面写入\n <meta id=\"i18n_pagename\" content=\"页面名(对应语言包的语言文件名)\">");
        return false;
    };
    var sourceName = optionEle.attr('content');
    sourceName = sourceName.split('-');
        /*
        首先获取用户浏览器设备之前选择过的语言类型
         */
        if (getCookie("userLanguage")) {
            i18nLanguage = getCookie("userLanguage");
        } else {
            // 获取浏览器语言
            var navLanguage = getNavLanguage();
            if (navLanguage) {
                // 判断是否在网站支持语言数组里
                var charSize = $.inArray(navLanguage, webLanguage);
                if (charSize > -1) {
                    i18nLanguage = navLanguage;
                    // 存到缓存中
                    getCookie("userLanguage",navLanguage);
                };
            } else{
                console.log("not navigator");
                return false;
            }
        }
        /* 需要引入 i18n 文件*/
        if ($.i18n == undefined) {
            console.log("请引入i18n js 文件")
            return false;
        };

        /*
        这里需要进行i18n的翻译
         */
        jQuery.i18n.properties({
            name : sourceName, //资源文件名称
            path : '/ascss/language/' + i18nLanguage +'/', //资源文件路径
            mode : 'map', //用Map的方式使用资源文件中的值
            language : i18nLanguage,
            callback : function() {//加载成功后设置显示内容
                var insertEle = $("[data-language]");
                console.log(".i18n 写入中...");
                insertEle.each(function() {
                    // 根据i18n元素的 name 获取内容写入
                    try {
                    	$(this).html($.i18n.prop($(this).data("language")));
                    }catch(e){
                    	
                    }
                    // $(this).html($.i18n.trans($(this).data("language")));
                });
                console.log("写入完毕");

                console.log(".i18n-input 写入中...");
                var insertInputEle = $(".i18n-input");
                insertInputEle.each(function() {
                    var selectAttr = $(this).attr('selectattr');
                    if (!selectAttr) {
                        selectAttr = "value";
                    };
                    $(this).attr(selectAttr, $.i18n.prop($(this).attr('selectname')));
                });
                console.log("写入完毕");
            }
        });
}

/*页面执行加载执行*/
$(function(){

    /*执行I18n翻译*/
    execI18n();

    /*将语言选择默认选中缓存中的值*/
    $("#language option[value="+i18nLanguage+"]").attr("selected",true);

    /* 选择语言 */
    $("#language").on('change', function() {
        var language = $(this).children('option:selected').val()
        console.log(language);
        getCookie("userLanguage",language,{
            expires: 30,
            path:'/'
        });
        location.reload();
    });
});

